package com.jv.spring.autowiredproperties;

import com.jv.spring.autowiredproperties.scan.User;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext();
		ac.register(SpringAppConfig.class);
		ac.refresh();
		User user = (User)ac.getBean("user");
		System.out.println(user.getName());
	}
}
